﻿@model AloWeb.Models.LoginModel
@{
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}
<div class="widget_title">
    <h2>
        Quản lý AlogiaocomV2</h2>
    <ul>
        <li><a href="#">
            <img src="~/Images/admin/logo.png" width="48px"></a></li>
    </ul>
</div>
@using (Html.BeginForm("Login", "Admin", FormMethod.Post, new { @id = "frm", @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    
    <div class="widget_body">
        @if (!ViewData.ModelState.IsValid)
        {
            <div class="msg failure">
                @Html.ValidationSummary(true)
            </div>    
        }
        <div class="widget_content">
            <label class="block" for="Username">
                Tên đăng nhập:</label>
            @Html.TextBoxFor(m => m.UserName, new { @class = "large" })
            <label class="block" for="Password">
                Mật khẩu:</label>
            @Html.PasswordFor(m => m.Password, new { @class = "large" })
            <div style="margin-top: 10px">
                <label class="left">@Html.CheckBoxFor(m => m.RememberMe) &nbsp; Ghi nhớ mật khẩu</label>
                <input type="submit" class="btn right" value="Đăng nhập" />
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
}
